import request from '@/utils/request'

// 查询盘点计算记录列表
export function listprofithistory(query) {
  return request({
    url: '/system/profithistory/list',
    method: 'get',
    params: query
  })
}

// 查询盘点计算记录详细
export function getprofithistory(id) {
  return request({
    url: '/system/profithistory/' + id,
    method: 'get'
  })
}

// 新增盘点计算记录
export function addprofithistory(data) {
  return request({
    url: '/system/profithistory',
    method: 'post',
    data: data
  })
}

// 修改盘点计算记录
export function updateprofithistory(data) {
  return request({
    url: '/system/profithistory',
    method: 'put',
    data: data
  })
}

// 删除盘点计算记录
export function delprofithistory(id) {
  return request({
    url: '/system/profithistory/' + id,
    method: 'delete'
  })
}
